html {
    --brown: #7e2804;
    --orange: #fe7702;
    --darkBrown: #3d2526;
    --yellow: #fdb300;
    --tan: #dcc8a3;
}

body {
    background-color: lightblue;
    height: 100vh;
}

.toggleWrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0 200px;
    transform: translate3d(-50%, -50%, 0);
}

.toggleWrapper input {
    position: absolute;
    left: -99em;
}

.toggle {
    cursor: pointer;
    display: inline-block;
    position: absolute;
    width: 90px;
    height: 40px;
    left: 50%;
    top: 36px;
    transform: translateX(-50%);
    background-color: var(--tan);
    border-radius: 84px;
    z-index: 2;
    transition: background-color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.toggle_handler {
    display: inline-block;
    position: relative;
    z-index: 1;
    background-color: var(--brown);
    width: 34px;
    height: 34px;
    top: 3px;
    left: 3px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: rotate(-45deg);
    transition: all 400ms cubic-bezier(0.68, -0.55, 0.2665, 1.55);   
}

.bear-body {
    position: relative;
    height: 0;
    width: 94px;
    border-radius: 20px 10px 5px;
    border-bottom: 150px solid var(--brown);
    border-left: 20px solid transparent;
    border-right: 10px solid transparent;
}

.bear-body::before, .bear-body::after {
    content: "";
    position: absolute;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    top: -16px;
    background: radial-gradient(var(--tan) 5px, var(--brown) 6px);
}

.bear-body::before {
    left: -12.5px;
}

.bear-body::after {
    right: -12.5px;
}

.bear-body .eye {
    position: absolute;
    height: 14px;
    width: 14px;
    background: var(--darkBrown);
    border-radius: 50%;
    top: 18px;
    background-image: radial-gradient(circle at 4px, white 1px, var(--darkBrown) 2px);
}

.bear-body .eye.left {
    left: 20px;
    animation: blink 3s ease-in-out infinite;
}

.bear-body .eye.right {
    left: 46px;
    animation: blink 3s ease-in-out infinite;
}

input:checked + .toggle:after {
    color: #ffffff;
}

input:checked + .toggle .toggle_handler {
    transform: translate3d(49px, 0, 0) rotate(0);
}

input:checked + .toggle + .bear-body{
    transform: rotateY(180deg);
}

@keyframes blink {
    85% {
        transform: rotateX(0deg);
    }
    90% {
        transform: rotateX(90deg);
    }
}